﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace D.Medicalcare.Domain.Entities
{
    public class WebPay
    {
        [Key]
        public int WebPayId { get; set; }
        /// <summary>
        /// 外部订单号 业务系统订单号，用来唯一标识一笔订单
        /// </summary>
        public string OutTradeNo { get; set; }

        /// <summary>
        /// 订单标题
        /// </summary>
        public string Subject { get; set; } = "八维订单";

        /// <summary>
        /// 描述
        /// </summary>
        public string Body { get; set; } = "订单详细";

        /// <summary>
        /// 支付金额
        /// </summary>
        public string TotalAmount { get; set; }

        /// <summary>
        /// 企业签约码，目前仅支持 FAST_INSTANT_TRADE_PAY
        /// </summary>
        public string ProductCode { get; set; } = "FAST_INSTANT_TRADE_PAY";

        /// <summary>
        /// 支付成功后通知后台地址
        /// </summary>
        public string SetNotifyUrl { get; set; } = "";

        /// <summary>
        /// 支付成功后，跳转回前端的地址
        /// </summary>
        public string SetRotiryUrl { get; set; } = "";

        /// <summary>
        /// 支付成功后，跳转回前端的地址
        /// </summary>
        public string SetReturnUrl { get; set; } = "";
    }
}
